package javapop.utils;

public class Quintuple<T1, T2, T3, T4, T5> {
	private final T1 first;
	private final T2 second;
	private final T3 third;
	private final T4 fourth;
	private final T5 fifth;
	
	public Quintuple(T1 first, T2 second, T3 third, T4 fourth, T5 fifth) {
		this.first = first;
		this.second = second;
		this.third = third;
		this.fourth = fourth;
		this.fifth = fifth;
	}
	
	public T1 getFirst() {
		return first;
	}
	
	public T2 getSecond() {
		return second;
	}
	
	public T3 getThird() {
		return third;
	}
	
	public T4 getFourth() {
		return fourth;
	}
	
	public T5 getFifth() {
		return fifth;
	}
	
	@Override
	public String toString() {
		StringBuilder buf = new StringBuilder();
		buf.append("(");
		buf.append(first);
		buf.append(",");
		buf.append(second);
		buf.append(",");
		buf.append(third);
		buf.append(",");
		buf.append(fourth);
		buf.append(",");
		buf.append(fifth);
		buf.append(")");
		return buf.toString();
	}
	
}
